package com.hanggold.springboot.lesson2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.jmx.export.annotation.AnnotationMBeanExporter;

/**
 * @author smc
 * @date 2019-06-03 09:50
 * @since lesson2
 **/
@SpringBootApplication
public class Lesson2Application {

    public static void main(String[] args) {


        ConfigurableApplicationContext configurableApplicationContext =  SpringApplication.run(Lesson2Application.class,args);

        AnnotationMBeanExporter annotationMBeanExporter  = configurableApplicationContext.getBean(AnnotationMBeanExporter.class);

        System.out.println("annotationMBeanExporter: "+ annotationMBeanExporter);


    }
}
